package com.jic.point.mapper;
import com.jic.point.model.entity.ConfActivityRuleLog;
import com.jic.point.rest.request.SignData;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ConfActivityRuleLogMapper {
	/**
	 * CONF_ACTIVITY_RULE_LOG插入数据
	 * @param confActivityRuleLog 入参实体类
	 */
	int insert (ConfActivityRuleLog confActivityRuleLog);

	/**
	 * CONF_ACTIVITY_RULE_LOG插入数据
	 * @param confActivityRuleLog 入参实体类
	 */
	int insertSelective (ConfActivityRuleLog confActivityRuleLog);

	/**
	 * CONF_ACTIVITY_RULE_LOG根据表对象数据修改数据
	 * @param confActivityRuleLog 入参实体类
	 */
	int updateByPrimaryKey (ConfActivityRuleLog confActivityRuleLog);

	/**
	 * CONF_ACTIVITY_RULE_LOG根据表对象数据修改数据
	 * @param confActivityRuleLog 入参实体类
	 */
	int updateByPrimaryKeySelective (ConfActivityRuleLog confActivityRuleLog);

	/**
	 * CONF_ACTIVITY_RULE_LOG根据id删除数据
	 * @param confActivityRuleLog 入参实体类
	 */
	int deleteByPrimaryKey (ConfActivityRuleLog confActivityRuleLog);

	/**
	 * CONF_ACTIVITY_RULE_LOG根据主键查询数据
	 * @param confActivityRuleLog 入参实体类
	 */
	ConfActivityRuleLog selectByPrimaryKey (ConfActivityRuleLog confActivityRuleLog);

	/**
	 * CONF_ACTIVITY_RULE_LOG根据主键查询数据
	 * @param confActivityRuleLog 入参实体类
	 */
	List<ConfActivityRuleLog> listPageBySelective (ConfActivityRuleLog confActivityRuleLog);

	/**
	 * CONF_ACTIVITY_RULE_LOG查询数据
	 * @param confActivityRuleLog 入参实体类
	 */
	List<ConfActivityRuleLog>  selectBySelective (ConfActivityRuleLog confActivityRuleLog);

    List<ConfActivityRuleLog> selConfActivityRuleByCode(SignData signData);

    /**
     *
     *
     * @description: 以时间来查询所个月活动规则添加的偶有积分
     * @return:
     * @author: fengrui
     * @time: 2020/12/03 10:55
     */
    List<ConfActivityRuleLog> selectAddPoint(@Param("date") Date time);
}
